<tpl var layoutBody={ />
<div data-identity="wxmp:menus:matchrule" data-table="wxmp_menus_matchrule">
	<div class="layui-breadcrumb">
		<a href="/manage/index.jspx">首页</a>
		<a href="/manage/wxmp/menus/matchrule/index.jspx">按钮规则</a>
		<a href="javascript:;"> <cite>添加</cite></a>
	</div>
	<hr>
	<fieldset class="layui-elem-field">
		<legend>添加 按钮规则</legend>
		<div class="layui-field-box">
			<form class="layui-form" action="save.json?oper=create" lay-filter="mWxmpMenusMatchruleForm">
				<div class="layui-form-item" data-type="bigint" data-isnull="NO" data-name="id">
					<label class="layui-form-label">：</label>
					<div class="layui-input-block">
						<input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="NO" data-name="uuid">
					<label class="layui-form-label">菜单编组：</label>
					<div class="layui-input-block">
						<input type="text" name="uuid" placeholder="请输入菜单编组" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="tag_id">
					<label class="layui-form-label">用户标签：</label>
					<div class="layui-input-block">
						<input type="text" name="tagId" placeholder="请输入用户标签" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="sex">
					<label class="layui-form-label">性别：男（1）女（2）：</label>
					<div class="layui-input-block">
						<input type="text" name="sex" placeholder="请输入性别：男（1）女（2）" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="enum" data-isnull="YES" data-name="country">
					<label class="layui-form-label">国家信息：</label>
					<div class="layui-input-block">
						<input type="text" name="country" placeholder="请输入国家信息" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="province">
					<label class="layui-form-label">省份信息：</label>
					<div class="layui-input-block">
						<input type="text" name="province" placeholder="请输入省份信息" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="city">
					<label class="layui-form-label">城市信息：</label>
					<div class="layui-input-block">
						<input type="text" name="city" placeholder="请输入城市信息" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="client_platform_type">
					<label class="layui-form-label">客户端版本：</label>
					<div class="layui-input-block">
						<input type="text" name="clientPlatformType" placeholder="请输入客户端版本" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="varchar" data-isnull="YES" data-name="language">
					<label class="layui-form-label">语言信息：</label>
					<div class="layui-input-block">
						<input type="text" name="language" placeholder="请输入语言信息" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="datetime" data-isnull="YES" data-name="create_time">
					<label class="layui-form-label">创建时间：</label>
					<div class="layui-input-block">
						<input type="text" name="createTime" placeholder="请输入创建时间" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item" data-type="datetime" data-isnull="YES" data-name="update_time">
					<label class="layui-form-label">更新时间：</label>
					<div class="layui-input-block">
						<input type="text" name="updateTime" placeholder="请输入更新时间" autocomplete="off" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-input-block">
						<a class="layui-btn layui-btn-primary" href="javascript:history.go(-1)">返回</a>
						<button class="layui-btn" lay-submit lay-filter="mWxmpMenusMatchruleForm">立即提交</button>
					</div>
				</div>
			</form>
		</div>
	</fieldset>
</div>
<tpl }; />

<tpl var layoutScript={ />
<script type="text/javascript">
	layui.config({
		base: '${webCdn}/plugins/layui/modules/'
	}).extend({
		http: 'http/http.min',
		message: 'message/message.min'
	}).use(['element', 'message', 'form', 'http'], function() {
		// 绑定表单提交事件
		layui.form.on('submit(mWxmpMenusMatchruleForm)', function(data) {
			layui.http.post('save.json?oper=create', data.field, function (res) {
				layui.message.success(res.message, () => history.back());
			});

			return false;
		});
	});
</script>
<tpl }; />
<tpl include( "../../tpl/layout-scroll.html",{identity:"wxmp:menus:matchrule",layoutBody:layoutBody,layoutScript:layoutScript}){}/>